package com.weipai.turnplate.enums;

/**
 * @Author: 赵项阳
 * @Date: 2019/6/1 11:33
 * @Version 1.0
 */
public enum  RetCode {

    SUCCESS(200,"成功"),

    UPLOADSUCCESS(200,"上传图片成功!"),

    UPDATErEPEAT(401,"您所修改的抽奖码重复,请重新输入!"),

    DELETEDATA(401,"您在列表中已经存在这样的抽奖码啦,无需再次添加!"),

    SUCCESSUPDATE(200,"修改成功"),

    NULL(404,"您所传的值为空!"),
    ERROR(500,"请重新修改一次!"),

    SUCCESSSAVE(200,"添加成功"),

    ERRORBYDRAWCODE(500,"你输入的抽奖码错误，请重新输入一次!"),

    WINAPRIZE(200,"恭喜你抽到奖品,工作人员会在三个工作日联系您！"),

    ADDFAILED(401,"添加失败,请重新试一下!"),

    ERRORDRAWCODE(401,"输入的抽奖码错误,请重新输入!"),

    IMG_FORMAT(501, "上传图片格式暂不支持"),


    SORRY(401,"抱歉，您已经抽过奖啦！");






    private int code;
    private String msg;

    RetCode(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

}
